package com.net.framework.help.utils;

import com.google.gson.Gson;

/**
 * Author：xiaobin.zhang
 * Email：154722566@qq.com
 * Date：2016/9/7 10:49
 * Desc：<--转化成json串-->
 */
public class ToJsonUtil {

    private static Gson gson;

    public static String toJson(Object src) {
        if (null == gson) {
            gson = new Gson();
        }
        return gson.toJson(src);
    }
}
